﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace PongGame
{
    class Bat
    {
        public int X;
        public int Y;

        public Bat(int Xloc,int Yloc)
        {
            X = Xloc;
            Y = Yloc;
        }


        public void GoDown()
        {
            
             if (Y < 600-125) Y += 5 ;
            
        }

        public void GoUp()
        {
            if (Y > 0 ) Y -= 5;
 
           // throw new System.NotImplementedException();
        }

        public void Draw(SpriteBatch Screen,Texture2D Sprite)
        {
            Vector2 coordinates = new Vector2(X, Y);
            Screen.Draw(Sprite, coordinates, Color.White);
        }


    }
}
